<template>
	<view class="content">
		<u-cell-group>
			<u-cell :title="item.name" :value="item.value" v-for="(item,index) in  pageData">
				<template #label>
					<view class="" v-if="item.code == 'VALUE'">
						{{options['ALARM_DESCRIPTION']}}
					</view>
				</template>
			</u-cell>
		</u-cell-group>
	</view>
</template>


<script setup>
	const options = ref({}),
		type = ref(''),
		pageData = ref([{
			name: '报警系统',
			code: 'EVENT_ID',
			value: '安全监测系统'
		}, {
			name: '报警类型',
			code: 'EVENT_NAME',
			value: '瓦斯'
		}, {
			name: '报警级别',
			code: 'ST',
			value: 'A0001'
		}, {
			name: '报警值',
			code: 'ET',
			value: '工作面瓦斯'
		}, {
			name: '监测值',
			code: 'UNIT',
			value: '0.8'
		}, {
			name: '报警内容',
			code: 'VALUE',
			value: '变形5厘米'
		}, {
			name: '报警时间',
			code: 'ALARM_NAME',
			value: '2022/12/21 15:13:35'
		}, {
			name: '处理时间',
			code: 'STATION_ID',
			value: '2022/12/21 15:13:35'
		}, {
			name: '处理措施',
			code: 'ALARM_LEVEL',
			value: '已现场处理'
		}]);

	onLoad(() => {
		// const {
		// 	data,
		// } = e;
		// this.options = JSON.parse(data)
	})
</script>


<style lang="scss" scoped>
	.content {
		background: #fff;
	}
</style>